﻿using System;
using System.ComponentModel;
using System.Text.Json.Serialization;

namespace DimensionsHelper.Common.Contracts.Excel;

[Flags]
[JsonConverter(typeof(JsonStringEnumConverter<FontType>))]
public enum FontType
{
    /// <summary>
    ///     不添加特殊样式
    /// </summary>
    [Description("不添加特殊样式")]
    None = 0,

    /// <summary>
    ///     加粗字体。
    /// </summary>
    [Description("加粗")]
    Bold = 0x1,

    /// <summary>
    ///     倾斜字体。
    /// </summary>
    [Description("倾斜")]
    Italic = 0x2,

    /// <summary>
    ///     字体添加下划线。
    /// </summary>
    [Description("下划线")]
    Underline = 0x4
}